import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { Subject } from 'rxjs/Subject';

@Injectable()
export class LayoutMenuService {
  documentId:Subject<string> = new BehaviorSubject<string>('');

  constructor() { }

  enterDocumentNav (id:string) {
    this.documentId.next(id);
  }
  leaveDocumentNav () {
    this.documentId.next('');
  }

}
